BuildRequires += $(LibDir)/libintl.la
BuildRequires += $(LibDir)/libidn.la

include ../../Library/GNU.mk

Title=		GNU Wget
Name=		wget
Version=	1.13.4
Revision=	3
URL=		http://ftp.gnu.org/gnu/wget/
Source=		$(Name)-$(Version).tar.gz

ReadMeFile=	$(SourceDir)/README
LicenseFile=	$(SourceDir)/COPYING

GnuConfigureExtra += --with-ssl=openssl
GnuConfigureExtra += --with-libidn

define install_post_hook
mv $(InstallDir)/$(Prefix)/etc/wgetrc $(InstallDir)/$(Prefix)/etc/wgetrc.default
endef

define final_inner_hook
$(BinDir)/wget --version
endef

ifeq ($(RUDIX_BUILD_WITH_STATIC_LIBS),yes)
LdFlags += -framework CoreFoundation -liconv
endif
